package chen.yi.mapper.base;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * 分页入参
 * @author huat
 **/
@Setter
@Getter
public class BasePageDTO {
    /**
     * 当前页
     */
    @NotNull(message = "请选择页码")
    @Min(value = 1,message = "当前页不能小于1")
    private Integer currentPage;
    /**
     * 页面大小
     */
    @NotNull(message = "请选择页面大小")
    @Min(value = 10,message = "页面大小不能小于10")
    @Max(value = 50,message = "页面大小不能大于50")
    private Integer pageSize;
}
